<script>
	export default {
		// //全局变量
		globalData: {
			deviceInfo: '',
			REDIRECT_URI: 'https%3A%2F%2Fi.samt.top%2F%23%2Fpages%2Findex%2Findex',
			APP_ID: 'wx79cf821dfab73a99',
			RESPONSE_TYPE: 'code',
			SCOPE: 'snsapi_userinfo',
			STATE: 'STATE',
			SECRET: "a95cd88b40ed075902a4bb48f7b58153",
			MORNING_TEMPLATE_ID: 'eJ_fNm-R8p1ZtvBssCshJO5-COJjrai2YYY_EGCE1p0',
			WECHART_CODE_URL: 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx79cf821dfab73a99&redirect_uri=https%3A%2F%2Fi.samt.top%2F%23%2Fpages%2Findex%2Findex&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'
		},
		onLaunch: function() {
			console.warn('当前组件仅支持 uni_modules 目录结构 ，请升级 HBuilderX 到 3.1.0 版本以上！')
			console.log('App Launch')
			uni.hideTabBar()
			this.globalData.deviceInfo = uni.getSystemInfoSync();
			// this.globalData.WECHART_CODE_URL = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${this.globalData.APP_ID}&redirect_uri=${this.globalData.REDIRECT_URI}&response_type=${this.globalData.RESPONSE_TYPE}&scope=${this.globalData.SCOPE}&state=${this.globalData.STATE}#wechat_redirect`
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')

		},

	}
</script>

<style lan:"scss">
	/*每个页面公共css */
	@import '@/uni_modules/uni-scss/index.scss';
	/*每个页面公共css */

	/* #ifndef APP-NVUE */
	@import '@/static/customicons.css';
	/* #ifndef APP-PLUS-NVUE */
	@import '@/static/reset.css';

	/* #endif*/
	// 设置整个项目的背景色
	page {
		background-color: #f5f5f5;
	}

	.home {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		height: 100%;
	}

	/* #endif */
	.example-info {
		font-size: 14px;
		color: #333;
		padding: 10px;
	}
</style>
